package com.cssl.controller;

import com.cssl.openFeign.BrandFeignClient;
import com.cssl.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/brand")
public class BrandController {
    @Autowired
    private BrandFeignClient brandFeignClient;

    /**
     * 查询所有品牌信息
     * @return
     */
    @PostMapping("/getBrandList")
    public Result getBrandList(){
        return brandFeignClient.getBrandList();
    }
}
